package com.ideal.manage.esms.repository.report;

import com.ideal.manage.esms.bean.report.Report;
import com.ideal.manage.esms.repository.framework.BaseRepository;
import org.springframework.data.jpa.repository.Query;


public interface ReportRepository extends BaseRepository<Report, String> {
    @Query("select r from Report r where r.projectId=?1 and r.name=?2 and r.reportCategory=1")
    Report findCreateTime(String id, String reportName);

    @Query("select r from  Report r where r.projectId=?1 and r.name=?2 and r.reportCategory=2")
    Report findCreateTimeByYear(String id, String reportName);
}
